package com.jgp.security.shiro.exception;

import com.jgp.common.exception.ErrorCode;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2019/1/2
 */
public enum SecurityErrorCode implements ErrorCode{
    AUTHENTICATION_FAIL("10001","认证失败"),
    AUTHENTICATION_TOKEN_FAIL("100011","token 过期"),
    AUTHENTICATION_TEL_CODE_FAIL("100012","手机验证码错误"),
    AUTHENTICATION_USERNAME_NO("100013","用户名不存在"),
    AUTHENTICATION_USERNAME_LOCKED("100014","用户被锁定"),
    AUTHORIZATION_FAIL("10002","授权失败");
    
    private String code;
    private String msg;
    
    SecurityErrorCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    
    
    @Override
    public String getCode() {
        return code;
    }
    
    @Override
    public String getMsg() {
        return msg;
    }
}
